package com.vegetable.modules.entity.baseData.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Products对象", description="产地商品")
public class AccountDetailsQueryPO implements Serializable {

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "人员类型：0农户，1客商，2代办，3班组")
    private Integer staffType;

    @ApiModelProperty(value = "0收菜；1批次结算；2付款；3收款；4交货；5加工；6打包,7直销，8代销")
    private Integer detailType;

    @ApiModelProperty(value = "人员id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long personId;

    private Boolean showDetail = true;

    private Long page = 1L;

    private Long size = 15L;
}
